package controllers;

import models.User;
import others.Utils;

public class Security extends Secure.Security {
	public static boolean authenticate(String username, String password) {
		User user = User.find("select u from User u where email=? and passwordHash=?", username, Utils.md5(password)).first();
		return user != null;
	}
}
